﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001409 RID: 5129
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyLeaveScRsp : IMessage<TrainPartyLeaveScRsp>, IMessage, IEquatable<TrainPartyLeaveScRsp>, IDeepCloneable<TrainPartyLeaveScRsp>, IBufferMessage
	{
		// Token: 0x170040BE RID: 16574
		// (get) Token: 0x0600E5D7 RID: 58839 RVA: 0x002671D4 File Offset: 0x002653D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyLeaveScRsp> Parser
		{
			get
			{
				return TrainPartyLeaveScRsp._parser;
			}
		}

		// Token: 0x170040BF RID: 16575
		// (get) Token: 0x0600E5D8 RID: 58840 RVA: 0x002671DB File Offset: 0x002653DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyLeaveScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170040C0 RID: 16576
		// (get) Token: 0x0600E5D9 RID: 58841 RVA: 0x002671ED File Offset: 0x002653ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyLeaveScRsp.Descriptor;
			}
		}

		// Token: 0x0600E5DA RID: 58842 RVA: 0x002671F4 File Offset: 0x002653F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyLeaveScRsp()
		{
		}

		// Token: 0x0600E5DB RID: 58843 RVA: 0x002671FC File Offset: 0x002653FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyLeaveScRsp(TrainPartyLeaveScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E5DC RID: 58844 RVA: 0x00267221 File Offset: 0x00265421
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyLeaveScRsp Clone()
		{
			return new TrainPartyLeaveScRsp(this);
		}

		// Token: 0x170040C1 RID: 16577
		// (get) Token: 0x0600E5DD RID: 58845 RVA: 0x00267229 File Offset: 0x00265429
		// (set) Token: 0x0600E5DE RID: 58846 RVA: 0x00267231 File Offset: 0x00265431
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600E5DF RID: 58847 RVA: 0x0026723A File Offset: 0x0026543A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyLeaveScRsp);
		}

		// Token: 0x0600E5E0 RID: 58848 RVA: 0x00267248 File Offset: 0x00265448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyLeaveScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E5E1 RID: 58849 RVA: 0x00267278 File Offset: 0x00265478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E5E2 RID: 58850 RVA: 0x002672B7 File Offset: 0x002654B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E5E3 RID: 58851 RVA: 0x002672BF File Offset: 0x002654BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E5E4 RID: 58852 RVA: 0x002672C8 File Offset: 0x002654C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E5E5 RID: 58853 RVA: 0x002672FC File Offset: 0x002654FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E5E6 RID: 58854 RVA: 0x0026733A File Offset: 0x0026553A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyLeaveScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E5E7 RID: 58855 RVA: 0x0026736B File Offset: 0x0026556B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E5E8 RID: 58856 RVA: 0x00267374 File Offset: 0x00265574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005AF8 RID: 23288
		private static readonly MessageParser<TrainPartyLeaveScRsp> _parser = new MessageParser<TrainPartyLeaveScRsp>(() => new TrainPartyLeaveScRsp());

		// Token: 0x04005AF9 RID: 23289
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005AFA RID: 23290
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04005AFB RID: 23291
		private uint retcode_;
	}
}
